﻿using System;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    public class SHActivityRet : Message
    {

        public static int TYPE = 7;
        public static int ID = 45;

        private int _shareTime;
        private int _creatRoomTime;
        private int _creatRoomGetPrize;
        private int _gameTime;
        private int _gameGetPrize;

        public int ShareTime
        {
            get
            {
                return _shareTime;
            }

            set
            {
                _shareTime = value;
            }
        }

        public int CreatRoomTime
        {
            get
            {
                return _creatRoomTime;
            }

            set
            {
                _creatRoomTime = value;
            }
        }

        public int GameTime
        {
            get
            {
                return _gameTime;
            }

            set
            {
                _gameTime = value;
            }
        }

        public int CreatRoomGetPrize
        {
            get
            {
                return _creatRoomGetPrize;
            }

            set
            {
                _creatRoomGetPrize = value;
            }
        }

        public int GameGetPrize
        {
            get
            {
                return _gameGetPrize;
            }

            set
            {
                _gameGetPrize = value;
            }
        }

        public void decode(Input _in)
        {
            _shareTime = _in.readInt();
            _creatRoomTime = _in.readInt();
            _creatRoomGetPrize = _in.readInt();
            _gameTime = _in.readInt();
            _gameGetPrize = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("shareTime = {0}, creatRoomTime= {1}, creatRoomGetPrize={2},  gameTime= {3}, gameGetPrize={4}", ShareTime, CreatRoomTime,CreatRoomGetPrize, GameTime,GameGetPrize);
        }
    }
}